<!DOCTYPE html>
<html lang="en">
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
    <meta charset="utf-8"/>
    <title>    TFC-Trotri Foundation Classes &raquo; \tfc\util\Paginator
</title>
    <meta name="author" content=""/>
    <meta name="description" content=""/>

            <link href="../css/template.css" rel="stylesheet" media="all"/>
    
            <!--[if lt IE 9]>
        
        <![endif]-->
        <script src="../js/jquery-1.7.1.min.js" type="text/javascript"></script>
        <script src="../js/jquery-ui-1.8.2.custom.min.js" type="text/javascript"></script>
        <script src="../js/jquery.mousewheel.min.js" type="text/javascript"></script>
        <script src="../js/bootstrap.js" type="text/javascript"></script>
        <script src="../js/template.js" type="text/javascript"></script>
        <script src="../js/prettify/prettify.min.js" type="text/javascript"></script>
    
            <link rel="shortcut icon" href="../img/favicon.ico"/>
        <link rel="apple-touch-icon" href="../img/apple-touch-icon.png"/>
        <link rel="apple-touch-icon" sizes="72x72" href="../img/apple-touch-icon-72x72.png"/>
        <link rel="apple-touch-icon" sizes="114x114" href="../img/apple-touch-icon-114x114.png"/>
    </head>
<body>

        <div class="navbar navbar-fixed-top">
        <div class="navbar-inner">
            <div class="container">
                <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                    <span class="icon-bar"></span> <span class="icon-bar"></span>
                    <span class="icon-bar"></span> </a>
                <a class="brand" href="http://www.trotri.com/">Trotri官网</a><a class="brand" href="../index.html">TFC-Trotri Foundation Classes</a>

                <div class="nav-collapse">
                    <ul class="nav">
                        <li class="dropdown">
                            <a href="#api" class="dropdown-toggle" data-toggle="dropdown">
                                API Documentation <b class="caret"></b>
                            </a>
                            <ul class="dropdown-menu">
                                                                    <li><a>Namespaces</a></li>
                                                                        <li><a href="../namespaces/tfc.html">tfc</a></li>
                                                                                                                                </ul>
                        </li>
                        <li class="dropdown" id="charts-menu">
                            <a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
                                Charts <b class="caret"></b>
                            </a>
                            <ul class="dropdown-menu">
                                <li>
                                    <a href="../graph_class.html">
                                        <i class="icon-list-alt"></i>&#160;Class hierarchy diagram
                                    </a>
                                </li>
                            </ul>
                        </li>
                        <li class="dropdown" id="reports-menu">
                            <a href="#reports" class="dropdown-toggle" data-toggle="dropdown">
                                Reports <b class="caret"></b>
                            </a>
                            <ul class="dropdown-menu">
                                <li>
                                    <a href="../errors.html">
                                         
                                    </a>
                                </li>
                                <li>
                                    <a href="../markers.html">
                                        <i class="icon-list-alt"></i>&#160;Markers
                                    </a>
                                </li>
                                <li>
                                    <a href="../deprecated.html">
                                        <i class="icon-list-alt"></i>&#160;Deprecated
                                    </a>
                                </li>
                            </ul>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="go_to_top">
            <a href="#___" style="color: inherit">Back to top&#160;&#160;<i class="icon-upload icon-white"></i></a>
        </div>
    </div>
    
    <div id="___" class="container">
        <noscript>
            <div class="alert alert-warning">
                Javascript is disabled; several features are only available if Javascript is enabled.
            </div>
        </noscript>

        
            <style>
        .deprecated h2 {
            text-decoration: line-through;
        }
    </style>
    <div class="row">
        <div class="span4">
                    <div class="btn-group view pull-right" data-toggle="buttons-radio">
        <button class="btn details" title="Show descriptions and method names"><i class="icon-list"></i></button>
        <button class="btn simple" title="Show only method names"><i class="icon-align-justify"></i></button>
    </div>
    <div class="btn-group visibility" data-toggle="buttons-checkbox">
        <button class="btn public active" title="Show public elements">Public</button>
        <button class="btn protected" title="Show protected elements">Protected</button>
        <button class="btn private" title="Show private elements">Private</button>
        <button class="btn inherited active" title="Show inherited elements">Inherited</button>
    </div>

        <ul class="side-nav nav nav-list">
        <li class="nav-header">
            <i class="icon-custom icon-method"></i> Methods
            <ul>
                                                                                                    <li class="method public">
        <a href="#method___construct" title="__construct :: 构造方法：初始化总的记录数、链接地址的前半部分、从$_GET或$_POST中获取当前页的键名">
            <span class="description">构造方法：初始化总的记录数、链接地址的前半部分、从$_GET或$_POST中获取当前页的键名</span><pre>__construct</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_getItems" title="getItems :: 获取所有的分页参数，包括行信息、页码信息、链接信息">
            <span class="description">获取所有的分页参数，包括行信息、页码信息、链接信息</span><pre>getItems</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_getLinks" title="getLinks :: 根据页码信息，获取这些页码组成的链接
当前页链接、首页链接、尾页链接、上一页链接、下一页链接、列表页链接
&lt;ul&gt;
&lt;li&gt;{@link $curr}&lt;/li&gt;
&lt;li&gt;{@link $begin}&lt;/li&gt;
&lt;li&gt;{@link $end}&lt;/li&gt;
&lt;li&gt;{@link $prev}&lt;/li&gt;
&lt;li&gt;{@link $next}&lt;/li&gt;
&lt;li&gt;{@link $lists}&lt;/li&gt;
&lt;/ul&gt;">
            <span class="description">根据页码信息，获取这些页码组成的链接
当前页链接、首页链接、尾页链接、上一页链接、下一页链接、列表页链接
&lt;ul&gt;
&lt;li&gt;{@link $curr}&lt;/li&gt;
&lt;li&gt;{@link $begin}&lt;/li&gt;
&lt;li&gt;{@link $end}&lt;/li&gt;
&lt;li&gt;{@link $prev}&lt;/li&gt;
&lt;li&gt;{@link $next}&lt;/li&gt;
&lt;li&gt;{@link $lists}&lt;/li&gt;
&lt;/ul&gt;</span><pre>getLinks</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_getRows" title="getRows :: 获取所有的行信息
当前页开始的记录数、每页展示的行数、总的行数
&lt;ul&gt;
&lt;li&gt;{@link $first}&lt;/li&gt;
&lt;li&gt;{@link $list}&lt;/li&gt;
&lt;li&gt;{@link $total}&lt;/li&gt;
&lt;/ul&gt;">
            <span class="description">获取所有的行信息
当前页开始的记录数、每页展示的行数、总的行数
&lt;ul&gt;
&lt;li&gt;{@link $first}&lt;/li&gt;
&lt;li&gt;{@link $list}&lt;/li&gt;
&lt;li&gt;{@link $total}&lt;/li&gt;
&lt;/ul&gt;</span><pre>getRows</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_getPages" title="getPages :: 获取所有的页码信息
当前页、每页展示的页码数、总页数、首页、尾页、上一页、下一页、第一个列表页码、最后一个列表页码
&lt;ul&gt;
&lt;li&gt;{@link $curr}&lt;/li&gt;
&lt;li&gt;{@link $list}&lt;/li&gt;
&lt;li&gt;{@link $total}&lt;/li&gt;
&lt;li&gt;{@link $begin}&lt;/li&gt;
&lt;li&gt;{@link $end}&lt;/li&gt;
&lt;li&gt;{@link $prev}&lt;/li&gt;
&lt;li&gt;{@link $next}&lt;/li&gt;
&lt;li&gt;{@link $first}&lt;/li&gt;
&lt;li&gt;{@link $last}&lt;/li&gt;
&lt;/ul&gt;">
            <span class="description">获取所有的页码信息
当前页、每页展示的页码数、总页数、首页、尾页、上一页、下一页、第一个列表页码、最后一个列表页码
&lt;ul&gt;
&lt;li&gt;{@link $curr}&lt;/li&gt;
&lt;li&gt;{@link $list}&lt;/li&gt;
&lt;li&gt;{@link $total}&lt;/li&gt;
&lt;li&gt;{@link $begin}&lt;/li&gt;
&lt;li&gt;{@link $end}&lt;/li&gt;
&lt;li&gt;{@link $prev}&lt;/li&gt;
&lt;li&gt;{@link $next}&lt;/li&gt;
&lt;li&gt;{@link $first}&lt;/li&gt;
&lt;li&gt;{@link $last}&lt;/li&gt;
&lt;/ul&gt;</span><pre>getPages</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_getTotalPages" title="getTotalPages :: 获取总页码数">
            <span class="description">获取总页码数</span><pre>getTotalPages</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_getLimitStr" title="getLimitStr :: 获取SQL-LIMIT语句">
            <span class="description">获取SQL-LIMIT语句</span><pre>getLimitStr</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_getFirstRow" title="getFirstRow :: 获取当前页开始的记录数">
            <span class="description">获取当前页开始的记录数</span><pre>getFirstRow</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_getCurrPage" title="getCurrPage :: 获取当前的页码">
            <span class="description">获取当前的页码</span><pre>getCurrPage</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_setCurrPage" title="setCurrPage :: 设置当前的页码">
            <span class="description">设置当前的页码</span><pre>setCurrPage</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_getListRows" title="getListRows :: 获取每页展示的行数">
            <span class="description">获取每页展示的行数</span><pre>getListRows</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_setListRows" title="setListRows :: 设置每页展示的行数">
            <span class="description">设置每页展示的行数</span><pre>setListRows</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_getListPages" title="getListPages :: 获取每页展示的页码数">
            <span class="description">获取每页展示的页码数</span><pre>getListPages</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_setListPages" title="setListPages :: 设置每页展示的页码数">
            <span class="description">设置每页展示的页码数</span><pre>setListPages</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_getUrl" title="getUrl :: 通过页码返回完整的链接">
            <span class="description">通过页码返回完整的链接</span><pre>getUrl</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_setUrl" title="setUrl :: 设置链接地址的前半部分，拼接上页码就是完整的链接">
            <span class="description">设置链接地址的前半部分，拼接上页码就是完整的链接</span><pre>setUrl</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_getTotalRows" title="getTotalRows :: 获取总的记录数">
            <span class="description">获取总的记录数</span><pre>getTotalRows</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_setTotalRows" title="setTotalRows :: 设置总的记录数">
            <span class="description">设置总的记录数</span><pre>setTotalRows</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_getPageVar" title="getPageVar :: 获取从$_GET或$_POST中获取当前页的键名">
            <span class="description">获取从$_GET或$_POST中获取当前页的键名</span><pre>getPageVar</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_setPageVar" title="setPageVar :: 设置从$_GET或$_POST中获取当前页的键名">
            <span class="description">设置从$_GET或$_POST中获取当前页的键名</span><pre>setPageVar</pre>
        </a>
    </li>

                                                </ul>
        </li>
        <li class="nav-header protected">» Protected
            <ul>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </ul>
        </li>
        <li class="nav-header private">» Private
            <ul>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </ul>
        </li>
        <li class="nav-header">
            <i class="icon-custom icon-constant"></i> Constants
            <ul>
                                <li class="constant ">
                    <a href="#constant_DEFAULT_LIST_ROWS" title="DEFAULT_LIST_ROWS :: ">
                        <span class="description"></span><pre>DEFAULT_LIST_ROWS</pre>
                    </a>
                </li>
                                <li class="constant ">
                    <a href="#constant_DEFAULT_LIST_PAGES" title="DEFAULT_LIST_PAGES :: ">
                        <span class="description"></span><pre>DEFAULT_LIST_PAGES</pre>
                    </a>
                </li>
                                <li class="constant ">
                    <a href="#constant_DEFAULT_PAGE_VAR" title="DEFAULT_PAGE_VAR :: ">
                        <span class="description"></span><pre>DEFAULT_PAGE_VAR</pre>
                    </a>
                </li>
                            </ul>
        </li>
    </ul>


        </div>

        <div class="span8">
            <div class="element class">
                <h1>Paginator</h1>
                <small style="display: block; text-align: right">
                                                        </small>
                <p class="short_description">Paginator class file
分页处理类</p>
                <div class="details">
                    <div class="long_description">
                        
                    </div>
                    <table class="table table-bordered">
                                                                                    <tr>
                                    <th>
                                        author
                                                                            </th>
                                    <td>
                                                                                    
                                                                                <p>宋欢 <a href="mailto:trotri@yeah.net">trotri@yeah.net</a></p>
                                    </td>
                                </tr>
                                                                                                                <tr>
                                    <th>
                                        version
                                                                            </th>
                                    <td>
                                                                                    
                                                                                <p>$Id: Paginator.php 1 2013-03-29 16:48:06Z huan.song $</p>
                                    </td>
                                </tr>
                                                                                                                <tr>
                                    <th>
                                        package
                                                                            </th>
                                    <td>
                                                                                    
                                                                                <p>tfc.util</p>
                                    </td>
                                </tr>
                                                                                                                <tr>
                                    <th>
                                        since
                                                                            </th>
                                    <td>
                                                                                    1.0
                                                                                
                                    </td>
                                </tr>
                                                                                                                                                                                                                                    </table>

                    <h3><i class="icon-custom icon-method"></i> Methods</h3>
                                                                <a id="method___construct"></a>
                        <div class="element clickable method public  method___construct" data-toggle="collapse" data-target=".method___construct .collapse">
                            <h2>构造方法：初始化总的记录数、链接地址的前半部分、从$_GET或$_POST中获取当前页的键名</h2>
                            <pre>__construct(integer $totalRows, string $url = &#039;?&#039;, string $pageVar = self::DEFAULT_PAGE_VAR) </pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$totalRows</h4>
                                                <code>integer</code><p></p>
                                            </div>
                                                                                    <div class="subelement argument">
                                                <h4>$url</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                                    <div class="subelement argument">
                                                <h4>$pageVar</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                            
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_getItems"></a>
                        <div class="element clickable method public  method_getItems" data-toggle="collapse" data-target=".method_getItems .collapse">
                            <h2>获取所有的分页参数，包括行信息、页码信息、链接信息</h2>
                            <pre>getItems() : array</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                    
                                                                            <h3>Response</h3>
                                        <code>array</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_getLinks"></a>
                        <div class="element clickable method public  method_getLinks" data-toggle="collapse" data-target=".method_getLinks .collapse">
                            <h2>根据页码信息，获取这些页码组成的链接
当前页链接、首页链接、尾页链接、上一页链接、下一页链接、列表页链接
&lt;ul&gt;
&lt;li&gt;{@link $curr}&lt;/li&gt;
&lt;li&gt;{@link $begin}&lt;/li&gt;
&lt;li&gt;{@link $end}&lt;/li&gt;
&lt;li&gt;{@link $prev}&lt;/li&gt;
&lt;li&gt;{@link $next}&lt;/li&gt;
&lt;li&gt;{@link $lists}&lt;/li&gt;
&lt;/ul&gt;</h2>
                            <pre>getLinks(array $pages) : array</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$pages</h4>
                                                <code>array</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code>array</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_getRows"></a>
                        <div class="element clickable method public  method_getRows" data-toggle="collapse" data-target=".method_getRows .collapse">
                            <h2>获取所有的行信息
当前页开始的记录数、每页展示的行数、总的行数
&lt;ul&gt;
&lt;li&gt;{@link $first}&lt;/li&gt;
&lt;li&gt;{@link $list}&lt;/li&gt;
&lt;li&gt;{@link $total}&lt;/li&gt;
&lt;/ul&gt;</h2>
                            <pre>getRows() : array</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                    
                                                                            <h3>Response</h3>
                                        <code>array</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_getPages"></a>
                        <div class="element clickable method public  method_getPages" data-toggle="collapse" data-target=".method_getPages .collapse">
                            <h2>获取所有的页码信息
当前页、每页展示的页码数、总页数、首页、尾页、上一页、下一页、第一个列表页码、最后一个列表页码
&lt;ul&gt;
&lt;li&gt;{@link $curr}&lt;/li&gt;
&lt;li&gt;{@link $list}&lt;/li&gt;
&lt;li&gt;{@link $total}&lt;/li&gt;
&lt;li&gt;{@link $begin}&lt;/li&gt;
&lt;li&gt;{@link $end}&lt;/li&gt;
&lt;li&gt;{@link $prev}&lt;/li&gt;
&lt;li&gt;{@link $next}&lt;/li&gt;
&lt;li&gt;{@link $first}&lt;/li&gt;
&lt;li&gt;{@link $last}&lt;/li&gt;
&lt;/ul&gt;</h2>
                            <pre>getPages() : array</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                    
                                                                            <h3>Response</h3>
                                        <code>array</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_getTotalPages"></a>
                        <div class="element clickable method public  method_getTotalPages" data-toggle="collapse" data-target=".method_getTotalPages .collapse">
                            <h2>获取总页码数</h2>
                            <pre>getTotalPages() : integer</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                    
                                                                            <h3>Response</h3>
                                        <code>integer</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_getLimitStr"></a>
                        <div class="element clickable method public  method_getLimitStr" data-toggle="collapse" data-target=".method_getLimitStr .collapse">
                            <h2>获取SQL-LIMIT语句</h2>
                            <pre>getLimitStr() : string</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                    
                                                                            <h3>Response</h3>
                                        <code>string</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_getFirstRow"></a>
                        <div class="element clickable method public  method_getFirstRow" data-toggle="collapse" data-target=".method_getFirstRow .collapse">
                            <h2>获取当前页开始的记录数</h2>
                            <pre>getFirstRow() : integer</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                    
                                                                            <h3>Response</h3>
                                        <code>integer</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_getCurrPage"></a>
                        <div class="element clickable method public  method_getCurrPage" data-toggle="collapse" data-target=".method_getCurrPage .collapse">
                            <h2>获取当前的页码</h2>
                            <pre>getCurrPage() : integer</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                    
                                                                            <h3>Response</h3>
                                        <code>integer</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_setCurrPage"></a>
                        <div class="element clickable method public  method_setCurrPage" data-toggle="collapse" data-target=".method_setCurrPage .collapse">
                            <h2>设置当前的页码</h2>
                            <pre>setCurrPage(integer|null $currPage = null) : \tfc\util\Paginator</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$currPage</h4>
                                                <code>integer|null</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code><a href="../classes/tfc.util.Paginator.html">\tfc\util\Paginator</a></code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_getListRows"></a>
                        <div class="element clickable method public  method_getListRows" data-toggle="collapse" data-target=".method_getListRows .collapse">
                            <h2>获取每页展示的行数</h2>
                            <pre>getListRows() : integer</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                    
                                                                            <h3>Response</h3>
                                        <code>integer</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_setListRows"></a>
                        <div class="element clickable method public  method_setListRows" data-toggle="collapse" data-target=".method_setListRows .collapse">
                            <h2>设置每页展示的行数</h2>
                            <pre>setListRows(integer $listRows) : \tfc\util\Paginator</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    throws
                                                </th>
                                                <td>
                                                                                                                                                                        
                                                                                                                                                                        <p>如果设置的行数小于或等于0，抛出异常</p>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$listRows</h4>
                                                <code>integer</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code><a href="../classes/tfc.util.Paginator.html">\tfc\util\Paginator</a></code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_getListPages"></a>
                        <div class="element clickable method public  method_getListPages" data-toggle="collapse" data-target=".method_getListPages .collapse">
                            <h2>获取每页展示的页码数</h2>
                            <pre>getListPages() : integer</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                    
                                                                            <h3>Response</h3>
                                        <code>integer</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_setListPages"></a>
                        <div class="element clickable method public  method_setListPages" data-toggle="collapse" data-target=".method_setListPages .collapse">
                            <h2>设置每页展示的页码数</h2>
                            <pre>setListPages(integer $listPages) : \tfc\util\Paginator</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    throws
                                                </th>
                                                <td>
                                                                                                                                                                        
                                                                                                                                                                        <p>如果设置的页码数小于或等于0，抛出异常</p>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$listPages</h4>
                                                <code>integer</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code><a href="../classes/tfc.util.Paginator.html">\tfc\util\Paginator</a></code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_getUrl"></a>
                        <div class="element clickable method public  method_getUrl" data-toggle="collapse" data-target=".method_getUrl .collapse">
                            <h2>通过页码返回完整的链接</h2>
                            <pre>getUrl(integer|null $pageNo = null) : string</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$pageNo</h4>
                                                <code>integer|null</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code>string</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_setUrl"></a>
                        <div class="element clickable method public  method_setUrl" data-toggle="collapse" data-target=".method_setUrl .collapse">
                            <h2>设置链接地址的前半部分，拼接上页码就是完整的链接</h2>
                            <pre>setUrl(string $url) : \tfc\util\Paginator</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$url</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code><a href="../classes/tfc.util.Paginator.html">\tfc\util\Paginator</a></code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_getTotalRows"></a>
                        <div class="element clickable method public  method_getTotalRows" data-toggle="collapse" data-target=".method_getTotalRows .collapse">
                            <h2>获取总的记录数</h2>
                            <pre>getTotalRows() : integer</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                    
                                                                            <h3>Response</h3>
                                        <code>integer</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_setTotalRows"></a>
                        <div class="element clickable method public  method_setTotalRows" data-toggle="collapse" data-target=".method_setTotalRows .collapse">
                            <h2>设置总的记录数</h2>
                            <pre>setTotalRows(integer $totalRows) : \tfc\util\Paginator</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    throws
                                                </th>
                                                <td>
                                                                                                                                                                        
                                                                                                                                                                        <p>如果设置的总记录数小于0，抛出异常</p>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$totalRows</h4>
                                                <code>integer</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code><a href="../classes/tfc.util.Paginator.html">\tfc\util\Paginator</a></code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_getPageVar"></a>
                        <div class="element clickable method public  method_getPageVar" data-toggle="collapse" data-target=".method_getPageVar .collapse">
                            <h2>获取从$_GET或$_POST中获取当前页的键名</h2>
                            <pre>getPageVar() : string</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                    
                                                                            <h3>Response</h3>
                                        <code>string</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_setPageVar"></a>
                        <div class="element clickable method public  method_setPageVar" data-toggle="collapse" data-target=".method_setPageVar .collapse">
                            <h2>设置从$_GET或$_POST中获取当前页的键名</h2>
                            <pre>setPageVar(string $pageVar) : \tfc\util\Paginator</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    throws
                                                </th>
                                                <td>
                                                                                                                                                                        
                                                                                                                                                                        <p>如果设置的键名为空字符串，抛出异常</p>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$pageVar</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code><a href="../classes/tfc.util.Paginator.html">\tfc\util\Paginator</a></code><p></p>
                                                                    </div>
                            </div>
                        </div>
                    
                                            <h3><i class="icon-custom icon-constant"></i> Constants</h3>
                                                    <a id="constant_DEFAULT_LIST_ROWS"> </a>
                            <div class="element clickable constant  constant_DEFAULT_LIST_ROWS" data-toggle="collapse" data-target=".constant_DEFAULT_LIST_ROWS .collapse">
                                <h2>DEFAULT_LIST_ROWS</h2>
                                <pre>DEFAULT_LIST_ROWS</pre>
                                <div class="labels">
                                                                    </div>
                                <div class="row collapse">
                                    <div class="detail-description">
                                        <div class="long_description"></div>
                                        <table class="table">
                                                                                            <tr>
                                                    <th>
                                                        var
                                                    </th>
                                                    <td>
                                                                                                                    <p>每页默认展示的行数</p>
                                                                                                            </td>
                                                </tr>
                                                                                            <tr>
                                                    <th>
                                                        
                                                    </th>
                                                    <td>
                                                                                                            </td>
                                                </tr>
                                                                                    </table>
                                    </div>
                                </div>
                            </div>
                                                    <a id="constant_DEFAULT_LIST_PAGES"> </a>
                            <div class="element clickable constant  constant_DEFAULT_LIST_PAGES" data-toggle="collapse" data-target=".constant_DEFAULT_LIST_PAGES .collapse">
                                <h2>DEFAULT_LIST_PAGES</h2>
                                <pre>DEFAULT_LIST_PAGES</pre>
                                <div class="labels">
                                                                    </div>
                                <div class="row collapse">
                                    <div class="detail-description">
                                        <div class="long_description"></div>
                                        <table class="table">
                                                                                            <tr>
                                                    <th>
                                                        var
                                                    </th>
                                                    <td>
                                                                                                                    <p>每页默认展示的页码数</p>
                                                                                                            </td>
                                                </tr>
                                                                                            <tr>
                                                    <th>
                                                        
                                                    </th>
                                                    <td>
                                                                                                            </td>
                                                </tr>
                                                                                    </table>
                                    </div>
                                </div>
                            </div>
                                                    <a id="constant_DEFAULT_PAGE_VAR"> </a>
                            <div class="element clickable constant  constant_DEFAULT_PAGE_VAR" data-toggle="collapse" data-target=".constant_DEFAULT_PAGE_VAR .collapse">
                                <h2>DEFAULT_PAGE_VAR</h2>
                                <pre>DEFAULT_PAGE_VAR</pre>
                                <div class="labels">
                                                                    </div>
                                <div class="row collapse">
                                    <div class="detail-description">
                                        <div class="long_description"></div>
                                        <table class="table">
                                                                                            <tr>
                                                    <th>
                                                        var
                                                    </th>
                                                    <td>
                                                                                                                    <p>默认的从$_GET或$_POST中获取当前页的键名</p>
                                                                                                            </td>
                                                </tr>
                                                                                            <tr>
                                                    <th>
                                                        
                                                    </th>
                                                    <td>
                                                                                                            </td>
                                                </tr>
                                                                                    </table>
                                    </div>
                                </div>
                            </div>
                                            
                                                                <h3><i class="icon-custom icon-property"></i> Properties</h3>
                                                    <a id="property__currPage"> </a>
                            <div class="element clickable property  protected property__currPage" data-toggle="collapse" data-target=".property__currPage .collapse">
                                <h2>当前的页码</h2>
                                <pre>_currPage : integer|null</pre>
                                <div class="labels">
                                                                                                        </div>
                                <div class="row collapse">
                                    <div class="detail-description">
                                        <div class="long_description"></div>

                                        <table class="table">
                                                                                            <tr>
                                                    <th>
                                                        var
                                                    </th>
                                                    <td>
                                                                                                                    <p>当前的页码</p>
                                                                                                            </td>
                                                </tr>
                                                                                            <tr>
                                                    <th>
                                                        
                                                    </th>
                                                    <td>
                                                                                                            </td>
                                                </tr>
                                                                                    </table>

                                                                                    <h3>Type(s)</h3>
                                            <code>integer|null</code>
                                                                            </div>
                                </div>
                            </div>
                                                    <a id="property__totalRows"> </a>
                            <div class="element clickable property  protected property__totalRows" data-toggle="collapse" data-target=".property__totalRows .collapse">
                                <h2>总的记录数</h2>
                                <pre>_totalRows : integer</pre>
                                <div class="labels">
                                                                                                        </div>
                                <div class="row collapse">
                                    <div class="detail-description">
                                        <div class="long_description"></div>

                                        <table class="table">
                                                                                            <tr>
                                                    <th>
                                                        var
                                                    </th>
                                                    <td>
                                                                                                                    <p>总的记录数</p>
                                                                                                            </td>
                                                </tr>
                                                                                            <tr>
                                                    <th>
                                                        
                                                    </th>
                                                    <td>
                                                                                                            </td>
                                                </tr>
                                                                                    </table>

                                                                                    <h3>Type(s)</h3>
                                            <code>integer</code>
                                                                            </div>
                                </div>
                            </div>
                                                    <a id="property__pageVar"> </a>
                            <div class="element clickable property  protected property__pageVar" data-toggle="collapse" data-target=".property__pageVar .collapse">
                                <h2>从$_GET或$_POST中获取当前页的键名</h2>
                                <pre>_pageVar : string</pre>
                                <div class="labels">
                                                                                                        </div>
                                <div class="row collapse">
                                    <div class="detail-description">
                                        <div class="long_description"></div>

                                        <table class="table">
                                                                                            <tr>
                                                    <th>
                                                        var
                                                    </th>
                                                    <td>
                                                                                                                    <p>从$_GET或$_POST中获取当前页的键名</p>
                                                                                                            </td>
                                                </tr>
                                                                                            <tr>
                                                    <th>
                                                        
                                                    </th>
                                                    <td>
                                                                                                            </td>
                                                </tr>
                                                                                    </table>

                                                                                    <h3>Type(s)</h3>
                                            <code>string</code>
                                                                            </div>
                                </div>
                            </div>
                                                    <a id="property__url"> </a>
                            <div class="element clickable property  protected property__url" data-toggle="collapse" data-target=".property__url .collapse">
                                <h2>链接地址的前半部分，拼接上页码就是完整的链接</h2>
                                <pre>_url : string</pre>
                                <div class="labels">
                                                                                                        </div>
                                <div class="row collapse">
                                    <div class="detail-description">
                                        <div class="long_description"></div>

                                        <table class="table">
                                                                                            <tr>
                                                    <th>
                                                        var
                                                    </th>
                                                    <td>
                                                                                                                    <p>链接地址的前半部分，拼接上页码就是完整的链接</p>
                                                                                                            </td>
                                                </tr>
                                                                                            <tr>
                                                    <th>
                                                        
                                                    </th>
                                                    <td>
                                                                                                            </td>
                                                </tr>
                                                                                    </table>

                                                                                    <h3>Type(s)</h3>
                                            <code>string</code>
                                                                            </div>
                                </div>
                            </div>
                                                    <a id="property__listRows"> </a>
                            <div class="element clickable property  protected property__listRows" data-toggle="collapse" data-target=".property__listRows .collapse">
                                <h2>每页展示的行数</h2>
                                <pre>_listRows : integer</pre>
                                <div class="labels">
                                                                                                        </div>
                                <div class="row collapse">
                                    <div class="detail-description">
                                        <div class="long_description"></div>

                                        <table class="table">
                                                                                            <tr>
                                                    <th>
                                                        var
                                                    </th>
                                                    <td>
                                                                                                                    <p>每页展示的行数</p>
                                                                                                            </td>
                                                </tr>
                                                                                            <tr>
                                                    <th>
                                                        
                                                    </th>
                                                    <td>
                                                                                                            </td>
                                                </tr>
                                                                                    </table>

                                                                                    <h3>Type(s)</h3>
                                            <code>integer</code>
                                                                            </div>
                                </div>
                            </div>
                                                    <a id="property__listPages"> </a>
                            <div class="element clickable property  protected property__listPages" data-toggle="collapse" data-target=".property__listPages .collapse">
                                <h2>每页展示的页码数</h2>
                                <pre>_listPages : integer</pre>
                                <div class="labels">
                                                                                                        </div>
                                <div class="row collapse">
                                    <div class="detail-description">
                                        <div class="long_description"></div>

                                        <table class="table">
                                                                                            <tr>
                                                    <th>
                                                        var
                                                    </th>
                                                    <td>
                                                                                                                    <p>每页展示的页码数</p>
                                                                                                            </td>
                                                </tr>
                                                                                            <tr>
                                                    <th>
                                                        
                                                    </th>
                                                    <td>
                                                                                                            </td>
                                                </tr>
                                                                                    </table>

                                                                                    <h3>Type(s)</h3>
                                            <code>integer</code>
                                                                            </div>
                                </div>
                            </div>
                                                            </div>
            </div>
            <a id="\tfc\util\Paginator"></a>
            <ul class="breadcrumb">
                <li><a href="../index.html"><i class="icon-custom icon-class"></i></a></li>
                    
    
    <li><span class="divider">\</span><a href="../namespaces/tfc.util.html">util</a></li>

                <li class="active"><span class="divider">\</span><a href="../classes/tfc.util.Paginator.html">Paginator</a></li>
            </ul>
        </div>
    </div>

    </div>

        <footer class="span12">
            Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by
            <a href="http://glyphicons.com/">Glyphicons</a>.<br/>
            Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor </a> and<br/>
            generated on Sat, 27 Dec 2014 06:16:38 +0000.<br/>
    </footer>
    </body>
</html>
